package cn.edu.scau.cmi.wangzm.simplefactory;

import cn.edu.scau.cmi.wangzm.simplefactory.Beef;
import cn.edu.scau.cmi.wangzm.simplefactory.Pork;
import cn.edu.scau.cmi.wangzm.simplefactory.Chicken;

public class MeatFactory {
   public static Meat getMeat(String MeatName) {
	   Meat meat=null;
	   if(MeatName.equals("beef")) {
		   meat =new Beef();
	   }
	   if(MeatName.equals("pork")) {
		   meat =new Pork();
	   }
	   if(MeatName.equals("chicken")) {
		   meat =new Chicken();
	   }
	   return meat;
   }
}
